import request from "@/utils/request";

//admin权限级别接口
/**
 * 添加member,供Admin使用
 */
export function addMember(row) {
  return request({
    url: "/members",
    method: "post",
    data: row
  });
}
/**
 * 查询member分页,供后台使用
 */
export function getMemberByPage(pageVo) {
  return request({
    url: "/members/search",
    method: "post",
    data: pageVo
  });
}
/**
 * 根据id主键获取单条记录
 */
export function getMember(id) {
  return request({
    url: "/members/" + id
  });
}

/**
 * 根据主键id更新指定行的数据
 */
export function updateMemberById(row) {
  return request({
    url: "/members/" + row.id,
    method: "put",
    data: row
  });
}
/**
 * // 根据id主键删除单条记录
 */
export function removeMemberById(id) {
  return request({
    url: "/members/" + id,
    method: "delete"
  });
}
